﻿using BonjourQuotation.UI.Models.BaseModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.WebPages.Html;

namespace BonjourQuotation.UI.Models.SetupModel
{
    public class SetupDetailsGridViewModel : UserAllPermissionsViewModel
    {
        public List<SetupDetailsGridRowViewModel> Rows { get; set; }
        public List<SelectListItem> DetailTypeID { get; set; }
        [DisplayName("Type:")]
        public string SelectedDetailDetailTypeIDText { get; set; }
        public string SelectedDetailDetailTypeID { get; set; }
        public string SelectedDetailServiceTypeID { get; set; }
        [DisplayName("Description:")]
        public string DetailDescriptionText { get; set; }
        [DisplayName("Code:")]
        public string DetailCodeText { get; set; }
        [DisplayName("Active:")]
        public List<SelectListItem> ActiveSearch { get; set; }
        public bool? IsActiveSearch { get; set; }
        public int DetailID { get; set; }
        public bool IsDelete { get; set; }
        public int PageNum { get; set; }
        public bool IsSearch { get; set; }
        public bool IsCanView { get; set; }
        public string Message { get; set; }
    }
    public class SetupDetailsGridRowViewModel
    {
        public int DetailID { get; set; }
        [DisplayName("Type:")]
        public string DetailTypeID { get; set; }
        [DisplayName("Code:")]
        public string DetailCode { get; set; }
        [DisplayName("Description:")]
        public string DetailDescription { get; set; }
        [DisplayName("Service Type:")]
        public List<SelectListItem> ServiceTypeID { get; set; }
        public string SelectedDetailServiceTypeID { get; set; }
        [DisplayName("Time:")]
        public bool TimeFlg { get; set; }
        [DisplayName("Vendor:")]
        public bool VendFlg { get; set; }
        [DisplayName("Address:")]
        public bool AddrFlg { get; set; }
        [DisplayName("Guid:")]
        public bool GuidFlg { get; set; }
        [DisplayName("Active:")]
        public bool IsActive { get; set; }
        public string Message { get; set; }
    }
}